package com.swxy.club.config;

import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 易
 */
@Configuration
public class FeignConfig {
    @Bean
    public Retryer feignRetryer() {
        // 初始间隔1s，最大间隔2s，最多重试3次
        return new Retryer.Default(1000, 2000, 3);
    }
}